<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<?php
session_start();
?>
<head>
	<!--
	Projet ISI - DMP Groupe B5
	Marie Livia MERIA, Noémie HERNANDORENA, Alexis TROTEL, Andrès ENCISO, Arthur FOUCHER, Arnaud SAUTIER
	Page de connexion au portail DMP
	-->
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Portail Médical</title>
	<!-- website mini-icon -->
    <link rel="icon" href="images/" type="image/png" />
	<!-- css -->
	<link rel="stylesheet" type="text/css" href="style/design.css"/>
    <script type="text/javascript" src="js/verif.js"></script>
</head>
<body>
<div id="general">
	<?php //test de l'etat du javascript
	//include('includes/testjs.php'); diablement efficace mais non validable w3c?>
	<noscript><p><span>Veuillez activer le JavaScript pour naviguer au mieux sur notre site. Pour cela rendez vous dans les options de votre navigateur.</span><br/></p></noscript>
	<?php
	//infos de connexion à la BDD
	require_once("lib/connect-bdd.php"); 
	?>
    <div id="en-tete">
		<?php
			//on inclut l'en-tête qui comprend les infos de connexion
			include_once('includes/header.php');
        ?>
    </div>
    
    <div style="width:95%;margin:auto;">
    	<img src="images/bottom.png" alt="bottom"/>
    </div>
    
    <div id="middle">
    <br /><br />
        <?php
        // on regarde quel est le paramètre "page" de l'url
        if(isset($_GET['page']))
                $page = $_GET['page'];
        else
                $page = '';
        // on inclut la page correspondante
        switch($page) {
                default:
                        include_once('pages/connexion.php');
                        break;   
				case 'identification':
                        include_once('pages/identification.php');
                        break;
				case 'logout':
                        include_once('pages/logout.php');
                        break;
				case 'role':
                        include_once('pages/role.php');
                        break;
				case 'accueil':
                        include_once('pages/accueil.php');
                        break;
				case 'info_perso':
                        include_once('pages/info-perso.php');
                        break;
				case 'modif-info-perso':
						include_once('pages/modif-info-perso.php');
						break;
				case 'details_m-l':
                        include_once('pages/details-m-l.php');
                        break;
				case 'dossier_med':
                        include_once('pages/dossier-med.php');
                        break;
				case 'dossier_inf':
                        include_once('pages/dossier-inf.php');
                        break;
				case 'dossier_autre':
                        include_once('pages/dossier-autre.php');
                        break;
				case 'exam_labo':
                        include_once('pages/exam-labo.php');
                        break;
				case 'imagerie':
                        include_once('pages/imagerie.php');
                        break;
				case 'prescription':
                        include_once('pages/prescription.php');
                        break;
				case 'creer-dmp':
                        include_once('pages/creer-dmp.php');
                        break;
				case 'creation':
                        include_once('pages/creation.php');
                        break;
				case 'rech-personnel':
						include_once('pages/rech-personnel.php');
						break;
				case 'desc-personnel':
						include_once('pages/desc-personnel.php');
						break;
				case 'pers-selected':
						include_once('pages/pers-selected.php');
						break;
				case 'ajout-maladie':
						include_once('pages/ajout-maladie.php');
						break;
				case 'ajout-allergie':
						include_once('pages/ajout-allergie.php');
						break;
				case 'ajout-vaccin':
						include_once('pages/ajout-vaccin.php');
						break;
				case 'tab-DMP':
						include_once('pages/tab-DMP.php');
						break;
				case 'conditions':
						include_once('pages/conditions.php');
						break;
				case 'contact':
						include_once('pages/contact.php');
						break;
				case 'aide':
						include_once('pages/aide.php');
						break;
				case 'ajout-obs':
						include_once('pages/ajout-obs.php');
						break;
				case 'ajout-exam':
						include_once('pages/ajout-exam.php');
						break;
				case 'ajout-imagerie':
						include_once('pages/ajout-imagerie.php');
						break;
				case 'ajout-pres':
						include_once('pages/ajout-pres.php');
						break;
        }
        ?>
        
    </div>
    
    <div style="width:95%;margin:auto;">
    <br /><br />
    	<img src="images/bottom.png" alt="bottom"/>
    </div>
    
    <div id="pied-page">
    	<?php
			//on inclut le pied de page
			include_once('includes/pied-page.php');
        ?>
    </div>
</div>
</body>
</html>